
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type AgentLevelTaskRecordRequest struct {

	Uid string `json:"uid" form:"uid"`

	LevelId string `json:"level_id" form:"level_id"`

	TaskId string `json:"task_id" form:"task_id"`

	Status string `json:"status" form:"status"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *AgentLevelTaskRecordRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *AgentLevelTaskRecordRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"level_id": "required",

		"task_id": "required",

		"status": "required",

		"add_time": "required",

	}
}

func (r *AgentLevelTaskRecordRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AgentLevelTaskRecordRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *AgentLevelTaskRecordRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
